home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cs.vu.nl!news
- From: Kastermans B <bkaster@cs.vu.nl>
- Subject: Re: int::~int()
- Nntp-Posting-Host: galjoen.cs.vu.nl
- X-Mailer: Mozilla 2.01 (X11; I; SunOS 5.4 sun4m)
- Content-Type: text/plain; charset=us-ascii
- References: <317083F7.116E@public.sta.net.cn>
- Sender: news@cs.vu.nl
- Mime-Version: 1.0
- Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
- Date: Fri, 19 Apr 1996 14:29:18 GMT
- Message-ID: <3177A33E.643@cs.vu.nl>
- Content-Transfer-Encoding: 7bit
-
- Xu Yifeng wrote:
- >
- > Hi everybody,
- >
- > can your compiler compile following program?
- >
- > //------------------------
- > void main()
- > {
- > int i = 0;
- >
- > i.int::~int();
- > }
- > //------------------------
- >
- > is it a legal C++ program?
- >
- > Regards,
- > Xu Yifeng
- This is the message I get:
-
- "CanComp.cxx", line 3: Warning (Anachronism): main() must have a return
- type of int.
- "CanComp.cxx", line 3: Note: Type "CC -migration" for more on
- anachronisms.
- 1 Warning(s) detected.
-
- I used CC on SunOS.
-
- Bart Kastermans
-